package com.qdlc.p2p.biz.tpp.model;

import com.qdlc.p2p.common.constant.SinaConstant;
import com.qdlc.p2p.common.util.DateUtil;

/**
 *
 * 新浪经办人接口
 * Created by lenovo on 2015/11/11.
 */
public class SinaMemberAgent extends SinaModel{

    /**
     * 接口名称 : 经办人信息
     * 类型（长度）：String(64)
     */
    private String service="smt_fund_agent_buy";

    /**
     *经办人姓名
     */
    private String agent_name;
    /**
     * 经办人证件号码
     */
    private String license_no;
    /**
     * 证件类型，大陆身份证类型：ID
     */
    private String license_type_code = "ID";
    /**
     * 经办人手机号
     */
    private String agent_mobile;
    /**
     * 经办人邮箱
     */
    private String email;

    /**
     * 待签名字符数组
     */
    private String[] signParamNames=new String[]{"version","service","request_time","partner_id","_input_charset","identity_id","identity_type",
            "agent_name","license_type_code","license_no","agent_mobile"};

    /**
     * 提交字符数组
     */
    private String[] subParamNames=new String[]{"version","service","request_time","partner_id","_input_charset","sign","sign_type","identity_id","identity_type",
            "agent_name","license_type_code","license_no","agent_mobile"};

    public SinaMemberAgent(){
        super();
    }

    public SinaMemberAgent(String agent_name,String license_no,String agent_mobile,
                           String extend_param, String identity_id){
        super();
        this.agent_name = agent_name;
        this.license_no = license_no;
        this.agent_mobile=agent_mobile;
        this.setExtend_param(extend_param);
        this.setIdentity_type("UID");
        this.setIdentity_id(identity_id);
        this.setEncode(SinaConstant.ENCODE_TRUE);
        this.setRequest_time(DateUtil.dateStr3(DateUtil.getNow()));
    }

    public String getService() {
        return service;
    }

    public void setService(String service) {
        this.service = service;
    }

    public String getAgent_name() {
        return agent_name;
    }

    public void setAgent_name(String agent_name) {
        this.agent_name = agent_name;
    }

    public String getLicense_no() {
        return license_no;
    }

    public void setLicense_no(String license_no) {
        this.license_no = license_no;
    }

    public String getLicense_type_code() {
        return license_type_code;
    }

    public void setLicense_type_code(String license_type_code) {
        this.license_type_code = license_type_code;
    }

    public String getAgent_mobile() {
        return agent_mobile;
    }

    public void setAgent_mobile(String agent_mobile) {
        this.agent_mobile = agent_mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String[] getSignParamNames() {
        return signParamNames;
    }

    public void setSignParamNames(String[] signParamNames) {
        this.signParamNames = signParamNames;
    }

    public String[] getSubParamNames() {
        return subParamNames;
    }

    public void setSubParamNames(String[] subParamNames) {
        this.subParamNames = subParamNames;
    }
}
